package com.azhon.appupdate.util

import android.content.Context
import android.content.res.Configuration

/**
 * 顶层声明类
 * Created by fushize on 2024/1/17.
 */


/**
 * 判断是否是平板，最小宽度大于等于600dp为平板
 */
fun isPad(context: Context): Boolean {
    val configuration: Configuration = context.resources.configuration
    val smallestScreenWidthDp: Int = configuration.smallestScreenWidthDp
    return smallestScreenWidthDp >= 600
}